//TwoX
importPackage(com.blocks.blocks);
importPackage(com.blocks);
importPackage(com.blocks.model);
importPackage(com.jme3.math);
importPackage(java.lang);
importPackage(com.blocks.script);
importPackage(com.jme3.math);
importPackage(com.jme3.collision);
importPackage(com.jme3.scene.debug);
importPackage(com.jme3.scene);
importPackage(com.jme3.material);
importPackage(com.blocks.gui);

var block = new Object(); 
var counter = 0;

block.setup = function(name) {
 	thisBlock.setName("TwoDivide");
 	thisBlock.setTextureRow(0.0);
	thisBlock.setTextureColumn(6.0);
 	thisBlock.resetTexture();
	thisBlock.setCustomFrequency(true);
	thisBlock.setBlockListGroup(BlockListGroup.FREQUENCY);

	
  } 
block.loop = function(name, tpf) { 
	if( thisBlock.isPowered()){
		if(thisBlock.getParentFrequency(thisBlock.getBlockSides())!=0){				 
		 thisBlock.setAllFrequency(thisBlock.getParentFrequency(thisBlock.getBlockSides())/2);
		}else{
		 thisBlock.setAllFrequency(0);
		}			
	}	
 }


block.scriptExport = function() {
	return ("");
} 


